import http from './http.js'

//域名
export const baseurl = http.getBaseUrl()

// 小程序相关信息
export const appSettingFunc = p => http.get('/public/getSetting', p)

// 公共文件上传
export const uploadFileFunc = p => http.uploadFile('/common/upload', p)

// 获取openid
export const getOpenIdFunc = p => http.get('/courier/getOpenId', p)

// 登录
export const accountLoginFunc = p => http.get('/courier/login', p)

// 用户信息
export const userinfoFunc = p => http.get('/courier/info', p)

// 修改用户信息
export const userUpdateFunc = p => http.post('/courier/update', p)

// 接单大厅和我的订单
export const hallListFunc = p => http.get('/courier/orders/page', p)

// 订单详情
export const hallInfoFunc = p => http.get('/courier/orders/info', p)

// 我的总订单数量
export const orderCountFunc = p => http.get('/courier/orders/countAll', p)

// 接单
export const orderTakeFunc = p => http.get('/courier/orders/take', p)

// 送达
export const orderOverFunc = p => http.get('/courier/orders/over', p)

// 意见反馈
export const feedbackFunc = p => http.post('/api/opinion/save', p)

// 意见反馈记录
export const feedbackRecordFunc = p => http.get('/api/opinion/page', p)

// 评价统计
export const commentCountFunc = p => http.get('/courier/evaluate/count', p)

// 评价列表
export const commentListFunc = p => http.get('/courier/evaluate/page', p)